<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .box1 {
            width: 200px;
            height: 200px;
            background-color: skyblue;
            opacity: .5;
            /* transition-property: width, height, background-color; */
            transition-property: all;
            transition-duration: .5s;
        }

        .box1:hover {
            height: 400px;
            width: 400px;
            background-color: aquamarine;
            transform: rotateZ(45deg);
            /* transform: rotateX(45deg); */
            box-shadow: 0 0 20px black;
            opacity: 1;
        }
    </style>
</head>

<body>
    <div class="box1"></div>
</body>

</html>